package com.thams.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.thams.dao.base.BaseDao;
import com.thams.dao.i.IInventoryDao;
import com.thams.entity.BasPart;
import com.thams.entity.ComputationUnit;
import com.thams.entity.Inventory;
import com.thams.entity.InventorySub;

public class InventoryDao extends BaseDao implements IInventoryDao {

	@Override
	public void insertInventory(Inventory inventory)  throws DataAccessException{
		getConn().insert("USERTABLE.insertInventory",inventory);
	}
	
	@Override
	public void insertInventorySub(InventorySub inventorySub)  throws DataAccessException{
		getConn().insert("USERTABLE.insertInventorySub",inventorySub);
	}

	@Override
	public List<ComputationUnit> getComputationUnitList() throws DataAccessException {
		return getConn().queryForList("USERTABLE.getComputationUnitList");
	}

	@Override
	public void insertBasPart(BasPart basPart) throws DataAccessException {
		getConn().insert("USERTABLE.insertBasPart",basPart);
		
	}
}
